{include file="public/header" /}
{css href="__ROOT__/static/public/umeditor/themes/default/css/umeditor.css" /}
{js href="__ROOT__/static/public/umeditor/third-party/template.min.js" /}
{js href="__ROOT__/static/public/umeditor/umeditor.config.js" /}
{js href="__ROOT__/static/public/umeditor/umeditor.min.js" /}
<div class="container padding-top" style="width:1300px">
	<div class="line" style="height:100%;">
		<div class="x1 padding" style="width:489px">
			<div style="background:url('__ROOT__/static/public/images/webp.webp') no-repeat;background-size: 100%;height:810px;width:100%;text-align:center">
				<iframe style="width: 320px;margin: 143px 0px 0px 4px;height: 550px;" src="{:url('seller/index/preview')}?type=goods_list"></iframe>
			</div>
		</div>
		<div class="x3 padding" style="width:784px;border-left:1px solid #ddd">
			<div class="button-toolbar">
				<div class="button-group">
					<button type="button" class="button bg-green"><a href="{:url('service_edit')}" style="color:#fff">{:lang('add').lang('service')}</a></button>
					
				</div>
			</div>
			{volist name="data" id="volist"}
			<hr/>
			<div>
				<span style="position:absolute" class="tag bg-{if $volist.status==1}green{elseif $volist.status==3}yellow{else}red{/if}">{:lang('status_'.$volist.status)}</span>
				<div data-id="{$volist.id}" class="media media-x">
					<a class="float-left">
						<img style="height: 80px;" src="{$volist.image1}" class="radius" alt="{$volist.title}">
					</a>
					<div class="media-body">
						<strong>{$volist.title}</strong>{$volist.service}
					</div>
				</div>
				{if $volist.status==4 && $volist.refuse}<span class="text-red">{:lang('refuse')}：{$volist.refuse}</span>{/if}
			</div>
			{/volist}
		</div>
	</div>
</div>
<script>
	var um = UM.getEditor('myEditor');
	$('.media-x').click(function(){
		var id = $(this).attr('data-id');
		layer.confirm("{:lang('select').lang('handle')}!", {
		  btn: ["{:lang('edit')}","{:lang('del')}"], //按钮
			btn1: function(){
				location.href="{:url('service_edit')}?id="+id;
			}, 
			btn2: function(){
			  layer.confirm("{:lang('del')}？", {
				  btn: ["{:lang('status_1')}","{:lang('status_2')}"] //按钮
				}, function(){
				  location.href="{:url('service_del')}?id="+id;
				});
			}
		});
	});
</script>
{include file="public/footer" /}